<?  session_start();  ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>

<body>
<?
include  "Contact_db.inc.php";
$sql="select*from users where users_user='$users_user'AND users_pass='$users_pass'";
$query=mysql_db_query($dbname,$sql);
$numrows=mysql_num_rows($query);
print $numrows;
if($numrows==0){
print "<meta http-equiv='refresh' content='0;url=login.php'>" ;}
else{

  session_register("admin_login");
  session_register("users_user");
  mysql_db_query($dbname,"update users set users_online_date=now() where users_user='$users_user'");
print "<meta http-equiv='refresh' content='0;url=admin.php'>" ;}
?>

</body>
</html>
